<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="Sistema de Avaliação"></h:outputText>
        </ui:define>
        <ui:define name="body">
           <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListQuestoesEmpty}" rendered="#{questoesController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{questoesController.items.rowCount > 0}">
                    <h:dataTable value="#{questoesController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                    
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListQuestoesTitle_pergunta}"/>
                            </f:facet>
                            <h:outputText value="#{item.pergunta}"/>
                        </h:column>
                        
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Voto"/>
                            </f:facet>
                            
                             <h:selectOneRadio id="selectOneRadio1" value="1">  
                                    <f:selectItem itemLabel="1" itemValue="#{true}"/>  
                                    <f:selectItem itemLabel="2" itemValue="#{true}"/>  
                                    <f:selectItem itemLabel="3" itemValue="#{true}"/>  
                                    <f:selectItem itemLabel="4" itemValue="#{true}"/>  
                                    <f:selectItem itemLabel="5" itemValue="#{true}"/>  
                            </h:selectOneRadio> 
                            
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br/>
                <h:button value="Salvar e enviar"></h:button>
                <h:button value="Salvar"></h:button>
                
            </h:form>
           
         </ui:define>
    </ui:composition>

</html>